import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

export const purchaseWorkPlaceRouter = {
    name:'PurchaseWorkPlaceA',
    component: () => import('@/components/MenuPage/MenuPage.vue'),
    path:'PurchaseWorkPlaceA',
    meta:{
      title:t('router.purchase.purchaseWorkPlace'),
      alwaysShow:true
    },
    children:[
      {
        path: '/PurchaseInitWorkPlace',
        component: () =>
          import(
            '@/views/SupplyChain/Purchase/PurchaseWorkPlace/PurchaseInitWorkPlace.vue'
          ),
        name: 'PurchaseInitWorkPlace',
        meta: {
          title: t('router.purchase.purchaseInitWorkPlace')
        }
      },
      {
        path: '/PurchaseWorkPlace',
        component: () =>
          import('@/views/SupplyChain/Purchase/PurchaseWorkPlace/PurchaseWorkPlace.vue'),
        name: 'PurchaseWorkPlace',
        meta: {
          title: t('router.purchase.purchaseWorkPlace')
        }
      }
    ]
  }